//
//  AccountTools.h
//  AppExample
//
//  Created by user on 15/10/16.
//  Copyright © 2015年 AppExample. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AccountTools : NSObject

+(BOOL)isEmpty:(NSString *) string;
+(BOOL)isLogin;
+(void)saveUserToken:(NSString*)token;
+(NSString*)getUserToken;
+ (void)removeNSUserToken;
+ (BOOL)validatePassWord:(NSString*)PassWord;
+ (BOOL)validatePhoneNumber:(NSString *)string;
+ (NSString *)md5:(NSString *)str;

+ (void)Saveid:(NSString *)userid
   userHeadPhoto:(NSString *)userHeadPhoto;
+(void)saveUserCd:(NSString *)userCd;
+(NSString *)getUserCd;
+ (BOOL)allIsNumber:(NSString *)string;
+ (BOOL)validateEmail:(NSString *)string;
+ (void)exitLogin;

+(NSData *)toJSONData:(id)theData;
@end
